package com.smedi.ismedi.inmail.core.application.command;

import lombok.*;

import static com.smedi.ismedi.inmail.core.infrastructure.constant.ConstantField.DASH;

/**
 * 总院发布的通知公告请求
 *
 * @author jiangqinxuan
 * &#064;date  2021/07/27
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class ProcessTaskListCommand {

    /**
     * 流程定义
     */
    private String processDefinitionKey;

    /**
     * 业务编码
     */
    private String businessCode;

    /**
     * 业务类型
     */
    private String businessType;

    /**
     * 业务key
     */
    private String businessKey;

    public String getBusinessKey() {
        return this.processDefinitionKey + DASH + this.businessType + DASH + this.businessCode;
    }
}